package interfaces;

interface I1 {
    void i1();
}

interface I2 {
    void i2();
}

class I2Demo {
    public void i2() {
        System.out.println("i2");
    }
}

class CombDemo extends I2Demo implements I1, I2 {
    @Override
    public void i1() {
        System.out.println("i1");
    }
}

public class Test3 {
    static void i1(I1 i1) {
        i1.i1();
    }

    static void i2(I2 i2) {
        i2.i2();
    }
    public static void main(String[] args) {
        CombDemo c = new CombDemo();
        i1(c);
        i2(c);
    }
}
